<?php

namespace app\admin\validate;

use think\Validate;

class SalaryBenchmark extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'title' => 'require|max:255',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'title.require' => '工资基准项名称不能为空',
        'title.max' => '工资基准项名称填入过长',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['title'],
        'edit' => ['title'],
    ];
    
}
